/*

 */
package org.vectrics.recruiter.struts.tag;

import java.util.List;

import org.vectrics.common.pagelist.PageList;
import org.vectrics.recruiter.RecruitServiceLocator;
import org.vectrics.recruiter.user.ResumeScanBatchCriteria;


/**
 * @author mmoore
 */
public class ResumeScanBatchPageList extends PageList {
    private ResumeScanBatchCriteria criteria = null; 

    
    public ResumeScanBatchPageList(ResumeScanBatchCriteria criteria) {
    	this.criteria = criteria;
    }
    
    /* 
     * 
     */
    public int getTotalElementCount() {
    	
        return (RecruitServiceLocator.getRecruitUserService().findResumeScanBatchesCount(criteria));
    }

    /*
     *
     */
    public List getElements(int start, int end) {
        return (RecruitServiceLocator.getRecruitUserService().findResumeScanBatches(criteria, start, end));
    }

}
